﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyTest.aspx.cs" Inherits="YunShop.MyTest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
   <style type="text/css">
    html, body
    {
        font-size:12px;
        padding:0;
        margin:0;
        border:0;
        height:100%;
        overflow:hidden;
    }
        .mini-hidden
        {
            width: 31px;
        }
        .style7
        {
            width: 662px;
            top: 0px;
            left: 0px;
        }
        .style55
        {
            height: 23px;
            text-align: center;
        }
        .style58
        {
            width: 85px;
            height: 21px;
        }
        .style59
        {
            top: -12px;
            left: -10px;
            height: 21px;
            width: 186px;
            text-align: left;
        }
        .style60
        {
            height: 21px;
        }
        .style61
        {
            width: 85px;
            height: 20px;
        }
        .style62
        {
            top: -12px;
            left: -10px;
            height: 20px;
            width: 186px;
            text-align: left;
        }
        .style63
        {
            height: 20px;
        }
        </style>
</head>
<body>
    <form id="form1" runat="server" method="post">
        <table >
                <tr>
                    <td width="80px" height ="30px" align="right">商品编码：</td>
                    <td width="240px" height ="30px">
                        <input name="FNumber" id="FNumber" class="mini-textbox" style="width:240px;" readonly="readonly" enabled ="false" value="" TabIndex="1"/>
                    </td>
                    <td width="80px" height ="30px" align="right">商品分类：</td>
                    <td width="240px" height ="30px" colspan="3" >
                        <input name="FClassName" id="FClassName" class="mini-textbox" style="width:240px;" readonly="readonly" enabled ="false" value="" TabIndex="1"/>
                    </td>
                </tr>
                <tr>
                        <td width="80px" height ="30px" align="right">商品条码：</td>
                    <td width="240px" height ="30px">
                        <input id="FCode" name="FCode" class="mini-textbox " style="width:240px;" enabled ="false" TabIndex="2"/>
                    </td>
                        <td width="80px" height ="30px" align="right">所属商户：</td>
                    <td width="240px" height ="30px" colspan="3" >
                        <input name="FCorpName" id="FCorpName" class="mini-textbox" style="width:240px;" readonly="readonly" enabled ="false" value="" TabIndex="1"/>
                    </td>
                </tr>
                <tr>
                    <td width="80px" height ="30px" align="right">商品名称：</td>
                    <td width="240px" height ="30px">
                        <input id="FName" name="FName" class="mini-textbox " style="width:240px;" enabled ="false" TabIndex="2"/>
                    </td>
                    <td width="80px" height ="30px" align="right">规格型号：</td>
                    <td width="240px" height ="30px" colspan="3" >
                        <input id="FSpec" name="FSpec" class="mini-textbox " style="width:240px;" enabled ="false" TabIndex="3"/>
                    </td>
                </tr>
                <tr>
                    <td width="80px" height ="30px" align="right">进货价：</td>
                    <td width="240px" height ="30px">
                        <input id="FPurPrice" name="FPurPrice" class="mini-spinner" changeOnMousewheel ="false" minValue="0" enabled ="false"  
                         maxValue="9999999" style="width: 240px;" TabIndex="6" format="#0.00"  showbutton="false" allowNull="true"/>                        
                    </td>
                    <td width="80px" height ="30px" align="right">单位：</td>
                    <td width="240px" height ="30px" colspan="3" >
                        <input id="Text1" name="FSpec" class="mini-textbox " style="width:240px;" enabled ="false" TabIndex="3"/>
                    </td>

                </tr>
             </table>
        
         <table class="style7">
            <tr>
                <td class="style55" align="right" bgcolor="#D7FFFF"> 
                    <asp:TextBox ID="TextBox1" runat="server" Height="19px" Width="619px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="style55" align="right" bgcolor="#D7FFFF"> 
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style55" align="right" bgcolor="#D7FFFF"> 
                    <a class="mini-button" onclick="GetGoodsList()" style="width:70px;">测试</a>
                </td>
            </tr>
        </table>
         <table>
            <tr>
                <td rowspan="2" > 
                    <div id="Specgrid" class="mini-datagrid" style="width:500px;height:100px;" pageSize="15"
                            borderStyle="border:1;" url="GetGoodsSpecs" showPager="false" idField="FItemID"
                            allowCellSelect="true" allowCellEdit="true"showColumnsMenu="true"fitColumns="false"  
                            sortMode="client">
                        <div property="columns">
                            <div type="checkcolumn" >选行</div>
                            <div header="FItemID" field="FItemID" width="0" visible="false"></div>
                            <div field="FCode" name="FCode" width="120" headeralign="center" allowsort="true">商品条码
                                <input property="editor" class="mini-textbox PopInput" style="width:100%;"/>
                            </div>
                            <div field="FAttribute" name="FAttribute" width="100" headeralign="center" allowsort="true">商品属性
                                <input property="editor" class="mini-textbox PopInput" style="width:100%;"/>
                            </div>
                        </div>
                    </div>
                </td>
                <td > 


                </td>
            </tr>
            <tr>
                <td > 


                </td>
            </tr>
        </table>
            <table>
                <tr>
                    <td width ="60px" align="right">分类名称</td>
                    <td width ="120px" colspan="2" style="width: 200px" >

                    </td>
                </tr>
                <tr>
                    <td width ="60px" align="right">分类名称</td>
                    <td width ="120px" ><input class="mini-textbox" id ="TreeKey" width ="120px" name = "TreeKey" onkeypress="setkeyPressCls()"/></td>
                    <td width ="80px" align="center">
                        <a class="mini-button" iconCls="icon-search" onclick="findtree" plain="true">搜索</a>
                    </td>
                </tr>
            </table>
        <a href="javascript:edit(\'' + record.FQty + '\')" style="color: #0000FF">中国</a>
        <a style="color: #0000FF; font-size: 12px;"></a>
&nbsp;<script type="text/javascript">


        function setWebserviceTest() {
            var json = '[{"FLng ":"2","FLat":"113.351638","FDistance":"20"}]';
            $.ajax({
                url: "/Mall/AjaxMallShop.aspx?method=SaveWebserviceTest",
                data: { myjson: json },
                cache: false,
                success: function (text) {
                    alert(text);
                },
                error: function (jqXHR, textStatus, errorThrown) {
                    alert(jqXHR.responseText);
                    CloseWindow();
                }
            });         
        }

        //保存分类
        function GetGoodsList() {
            var mjson = "";
            $.post("GetGoodsList", { json: mjson }, function (data) {
                alert(data);
            });
        }

        function CloseWindow(action) {
            if (window.CloseOwnerWindow) window.CloseOwnerWindow(action);
            else window.close();
        }

    </script>
    </form>
</body>
</html>
